package com.violet.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.violet.annotation.transition.CNoCopy;
import com.violet.annotation.transition.TDefaultValue;
import com.violet.annotation.transition.TNoTransition;
import com.violet.annotation.transition.TNoTransitionWithDefaultId;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("address")
public class Address implements PO {

    @CNoCopy
    @TNoTransitionWithDefaultId(prefix = "A")
    private String id;              // 地址ID

    @CNoCopy
    @TNoTransition
    private String userId;          // 用户ID

    private String name;            // 收货人
    private String phone;           // 收货人电话
    private String address;         // 收货人地址

    @CNoCopy
    @TDefaultValue
    private Boolean isDefault;      // 是否为默认地址
}
